home *** CD-ROM | disk | FTP | other *** search
/ American History: Interactive Maps & User's Guide / American History: Interactive Maps & User's Guide.iso / pc / Pref.dxr / 00011.ls < prev    next >
Encoding:
Text File  |  2000-01-25  |  627 b   |  25 lines

  1. on mouseDown
  2.   global gSystemVolumeLevel
  3.   repeat while the mouseDown = 1
  4.     set the locH of sprite 8 to the mouseH
  5.     if the mouseH < 96 then
  6.       set the locH of sprite 8 to 96
  7.     end if
  8.     if the mouseH > 307 then
  9.       set the locH of sprite 8 to 307
  10.     end if
  11.     if the locH of sprite 8 = 96 then
  12.       set the locV of sprite 7 to 124
  13.     else
  14.       set the locV of sprite 7 to 102
  15.     end if
  16.     updateStage()
  17.   end repeat
  18.   set gSystemVolumeLevel to (the locH of sprite 8 - 96) * 255 / 210
  19. end
  20.  
  21. on mouseUp
  22.   global gSystemVolumeLevel
  23.   set the soundLevel to integer(gSystemVolumeLevel / 36.42000000000000171)
  24. end
  25.